// I have not run this script in a long while but have ran it in the past. It's supposed
// to populate the old country profiles cache (which speeds up baking of the country profiles). I think we can keep it?

import * as db from "../db/db.js"
import { denormalizeLatestCountryData } from "../baker/countryProfiles.js"

const main = async () => {
    await db.knexReadWriteTransaction(
        denormalizeLatestCountryData,
        db.TransactionCloseMode.Close
    )
}

if (require.main === module) void main()
